ifdef NEW_KERNEL
EXTRA_CFLAGS += -DNEW_KERNEL=$(NEW_KERNEL)
endif

ifdef DEBUG_ON
EXTRA_CFLAGS += -DDEBUG_ON=$(DEBUG_ON)
endif

obj-m += manifold.o
manifold-objs := main_module.o string_functions.o proc_functions.o distance_list_functions.o stat_list_functions.o timer_functions.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
	rm -f *.ko
	rm -f *.o
	rm -f *.mod.*
	rm -f Module.symvers
	rm -f Module.markers
	rm -f modules.order

